package Thread;

class MyThread1 implements Runnable {
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(i);
        }
    }
}

public class CreateThread3 {
    public static void main(String[] args) {
        MyThread1 myThread = new MyThread1();
        Thread thread = new Thread(myThread);

        thread.start();
    }
}
